<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"  language="java" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html locale="true">
<head>
</head>
<c:set var="lstEmpleado" value="${requestScope.lstEmpleado}"></c:set>
<body>
<form>
<table id="tblEmployees" width="95%">
<tr><td class="csstextr">Área</td><td class="csstextr">rut</td><td class="csstextr">nombre</td><td class="csstextr">&nbsp;</td></tr>
<c:if test="${!empty lstEmpleado}">
	<c:forEach items="${lstEmpleado}" var="row">
	<tr>
		<td class="csstextr2"><c:out value="${row.nombreArea}"></c:out></td>
		<td class="csstextr2"><c:out value="${row.rut}"></c:out></td>
		<td class="csstextr2"><c:out value="${row.nombreCompleto}"></c:out></td>
		<td class="csstextr2">
			<c:if test="${row.asignadoArea==0 }">
				<c:if test="${row.idTipo == 'jefe'}">
					<input type="radio" name="empleado" id="empleado" value="<c:out value="${row.rut}"></c:out>,<c:out value="${row.nombreCompleto}"></c:out>,<c:out value="${row.nombreUsuario}"></c:out>" checked="checked" class="chkController"></input>
				</c:if>
				<c:if test="${row.idTipo != 'jefe'}">
					<input type="radio" name="empleado" id="empleado" value="<c:out value="${row.rut}"></c:out>,<c:out value="${row.nombreCompleto}"></c:out>,<c:out value="${row.nombreUsuario}"></c:out>"  class="chkController"></input>
				</c:if>
			</c:if>
		</td>
	</tr>
	</c:forEach>
</c:if>
<c:if test="${empty lstEmpleado}">
	<tr>
		<td class="csstextr2" colspan="4">No se encontraron empleados.</td>
	</tr>
</c:if>
</table>
</form>
</body>
</html:html> 